package basic;

import java.util.Scanner;

public class Zuotian {
	public static void main(String[] args) {
		int s,t;
		double a,b,c,d,e,f,g;
		Scanner in=new Scanner(System.in);
		System.out.println("请输入工资：");
		s=in.nextInt();
		t=s-3500;
		a=t*0.03;
		b=t*0.1-105;
		c=t*0.2-555;
		d=t*0.25-1005;
		e=t*0.3-2755;
		f=t*0.35-5505;
		g=t*0.45-13505;
		if(s<=0)
			System.out.println("个人所得税为："+0);
		else
			if(s<=1500)
				System.out.println("个人所得税为："+a);
			else
				if(s<=4500)
					System.out.println("个人所得税为："+b);
				else
					if(s<=9000)
						System.out.println("个人所得税为："+c);
					else
						if(s<=35000)
							System.out.println("个人所得税为："+d);
						else
							if(s<=55000)
							System.out.println("个人所得税为："+e);
							else
								if(s<=80000)
									System.out.println("个人所得税为："+f);
								else 
									System.out.println("个人所得税为："+g);
	
		
		
	}
}
